//
//  MLAWebVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/26.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLAWebVC.h"
#import <WebKit/WebKit.h>

@interface MLAWebVC ()

@end

@implementation MLAWebVC {
    WKWebView *webView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self configTitle:_titleStr];

    webView = [[WKWebView alloc] initWithFrame:CGRectZero];
    [self.view addSubview:webView];
    [webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.titleView.mas_bottom);
        make.left.right.bottom.equalTo(self.view);
    }];
    
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_urlStr]]];
}


- (void)backAction {
    [self.navigationController popToRootViewControllerAnimated:YES];
}

@end
